<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
			<!-- template designed by Marco Von Ballmoos  -->
			<title>Docs For Class Db</title>
			<link rel="stylesheet" href="../../media/stylesheet.css" />
						<script src="../../media/lib/classTree.js"></script>
												<script language="javascript" type="text/javascript">
				var imgPlus = new Image();
				var imgMinus = new Image();
				imgPlus.src = "../../media/images/plus.png";
				imgMinus.src = "../../media/images/minus.png";
				
				function showNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgMinus.src;
					oTable.style.display = "block";
				}
				
				function hideNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgPlus.src;
					oTable.style.display = "none";
				}
				
				function nodeIsVisible(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
									break;
							}
					return (oTable && oTable.style.display == "block");
				}
				
				function toggleNodeVisibility(Node){
					if (nodeIsVisible(Node)){
						hideNode(Node);
					}else{
						showNode(Node);
					}
				}
			</script>
					</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class Db</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
							<a href="#sec-descendents">Descendents</a>
			|											<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">ThinkPHP 数据库中间层实现类</p>
<p class="description"><p>支持Mysql、MsSQL、Sqlite、Oracle、PgSQL等多种数据库  还可以使用PDO</p></p>
	<ul class="tags">
				<li><span class="field">author:</span> liu21st &lt;<a href="mailto:liu21st@gmail.com">liu21st@gmail.com</a>&gt;</li>
				<li><span class="field">version:</span> $Id$</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_Think---Db---Db.class.php.html">/Think/Db/Db.class.php</a> (line <span class="field">26</span>)
		</p>
		
				
		<pre><a href="../../Think/Core/Base.html">Base</a>
   |
   --Db</pre>
	
			</div>
</div>

	<a name="sec-descendents"></a>
	<div class="info-box">
		<div class="info-box-title">Direct descendents</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
			<span class="disabled">Descendents</span>
			|												<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
								|															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<table cellpadding="2" cellspacing="0" class="class-table">
				<tr>
					<th class="class-table-header">Class</th>
					<th class="class-table-header">Description</th>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../Think/Db/DbIbase.html">DbIbase</a></td>
					<td>
											Firebird数据库驱动类 剑雷 2007.12.28
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../Think/Db/DbMysql.html">DbMysql</a></td>
					<td>
											Mysql数据库驱动类
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../Think/Db/DbMysqli.html">DbMysqli</a></td>
					<td>
											Mysqli数据库驱动类
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../Think/Db/DbPdo.html">DbPdo</a></td>
					<td>
											PDO数据库驱动类
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../Think/Db/DbPgsql.html">DbPgsql</a></td>
					<td>
											Pgsql数据库驱动类 感谢刘格 2007-12-29 完善^_^
										</td>
				</tr>
							</table>
		</div>
	</div>


	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<div class="var-summary">
																																																																																																																																																																																																																								<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$autoCommit" title="details" class="var-name">$autoCommit</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$autoFree" title="details" class="var-name">$autoFree</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$beginTime" title="details" class="var-name">$beginTime</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$comparison" title="details" class="var-name">$comparison</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$config" title="details" class="var-name">$config</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$connected" title="details" class="var-name">$connected</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$dbType" title="details" class="var-name">$dbType</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$dbVersion" title="details" class="var-name">$dbVersion</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$debug" title="details" class="var-name">$debug</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$error" title="details" class="var-name">$error</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$fields" title="details" class="var-name">$fields</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$lastInsID" title="details" class="var-name">$lastInsID</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$linkID" title="details" class="var-name">$linkID</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$numCols" title="details" class="var-name">$numCols</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$numRows" title="details" class="var-name">$numRows</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$pconnect" title="details" class="var-name">$pconnect</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$queryID" title="details" class="var-name">$queryID</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$queryStr" title="details" class="var-name">$queryStr</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$queryTimes" title="details" class="var-name">$queryTimes</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$result" title="details" class="var-name">$result</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$resultSet" title="details" class="var-name">$resultSet</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$resultType" title="details" class="var-name">$resultType</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$transTimes" title="details" class="var-name">$transTimes</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$writeTimes" title="details" class="var-name">$writeTimes</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$_linkID" title="details" class="var-name">$_linkID</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																																										
				<div class="method-definition">
					static 						<span class="method-result">mixed</span>
										<a href="#getInstance" title="details" class="method-name">getInstance</a>
										()
									</div>
																																																						
				<div class="method-definition">
					static 						<span class="method-result">array</span>
										<a href="#parseDSN" title="details" class="method-name">parseDSN</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$dsnStr</span>)
									</div>
																																																																																																																																																																																		
				<div class="method-definition">
											<span class="method-result">Db</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											([<span class="var-type">array</span>&nbsp;<span class="var-name">$config</span> = <span class="var-default">''</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">false</span>
										<a href="#add" title="details" class="method-name">add</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$map</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$table</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$multi</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">false</span>
										<a href="#addAll" title="details" class="method-name">addAll</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$map</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$table</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#addConnect" title="details" class="method-name">addConnect</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$config</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$linkNum</span> = <span class="var-default">null</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#addSpecialChar" title="details" class="method-name">addSpecialChar</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$value</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$value</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#autoExec" title="details" class="method-name">autoExec</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span> = <span class="var-default">''</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$lazy</span> = <span class="var-default">false</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$lock</span> = <span class="var-default">false</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#debug" title="details" class="method-name">debug</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#execute" title="details" class="method-name">execute</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span> = <span class="var-default">''</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$lock</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#factory" title="details" class="method-name">&amp;factory</a>
											([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$db_config</span> = <span class="var-default">''</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#fieldFormat" title="details" class="method-name">fieldFormat</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$value</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$value</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">ArrayObject</span>
										<a href="#find" title="details" class="method-name">find</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$where</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$tables</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">null</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$limit</span> = <span class="var-default">null</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$group</span> = <span class="var-default">null</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$having</span> = <span class="var-default">null</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$join</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lock</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getDbType" title="details" class="method-name">getDbType</a>
										()
									</div>
																						
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getLastSql" title="details" class="method-name">getLastSql</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#initConnect" title="details" class="method-name">initConnect</a>
											([<span class="var-type">boolean</span>&nbsp;<span class="var-name">$master</span> = <span class="var-default">true</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">boolen</span>
										<a href="#isMainIps" title="details" class="method-name">isMainIps</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$query</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result"><a href="../../Think/Db/ResultIterator.html">ResultIterator</a></span>
										<a href="#lazyQuery" title="details" class="method-name">lazyQuery</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span> = <span class="var-default">''</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#multiConnect" title="details" class="method-name">multiConnect</a>
											([<span class="var-type">boolean</span>&nbsp;<span class="var-name">$master</span> = <span class="var-default">false</span>])
									</div>
																						
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#parseFields" title="details" class="method-name">parseFields</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$fields</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#parseGroup" title="details" class="method-name">parseGroup</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$group</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#parseHaving" title="details" class="method-name">parseHaving</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$having</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#parseJoin" title="details" class="method-name">parseJoin</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$join</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#parseLimit" title="details" class="method-name">parseLimit</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$limit</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#parseOrder" title="details" class="method-name">parseOrder</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$order</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#parseSets" title="details" class="method-name">parseSets</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$sets</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#parseTables" title="details" class="method-name">parseTables</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$tables</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#parseValues" title="details" class="method-name">parseValues</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$values</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#parseWhere" title="details" class="method-name">parseWhere</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$where</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#Q" title="details" class="method-name">Q</a>
											([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$times</span> = <span class="var-default">''</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#query" title="details" class="method-name">query</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span> = <span class="var-default">false</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$lock</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">false</span>
										<a href="#remove" title="details" class="method-name">remove</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$where</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$table</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$limit</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">false</span>
										<a href="#save" title="details" class="method-name">save</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$sets</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$table</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$where</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$limit</span> = <span class="var-default">0</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lock</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setDec" title="details" class="method-name">setDec</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$table</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$condition</span>, [<span class="var-type">integer</span>&nbsp;<span class="var-name">$step</span> = <span class="var-default">1</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$where</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setField" title="details" class="method-name">setField</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$value</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$table</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$condition</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$asString</span> = <span class="var-default">false</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$where</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setInc" title="details" class="method-name">setInc</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$table</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$condition</span>, [<span class="var-type">integer</span>&nbsp;<span class="var-name">$step</span> = <span class="var-default">1</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$where</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#setLockMode" title="details" class="method-name">setLockMode</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#switchConnect" title="details" class="method-name">switchConnect</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$linkNum</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#W" title="details" class="method-name">W</a>
											([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$times</span> = <span class="var-default">''</span>])
									</div>
											</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			
<a name="var$autoCommit" id="$autoCommit"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$autoCommit</span>
			 = <span class="var-default"> true</span>			(line <span class="line-number">39</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$autoFree" id="$autoFree"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$autoFree</span>
			 = <span class="var-default"> false</span>			(line <span class="line-number">36</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$beginTime" id="$beginTime"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$beginTime</span>
						(line <span class="line-number">102</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$comparison" id="$comparison"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$comparison</span>
			 = <span class="var-default">array('eq'=&gt;'=','neq'=&gt;'!=','gt'=&gt;'&gt;','egt'=&gt;'&gt;=','lt'=&gt;'&lt;','elt'=&gt;'&lt;=','like'=&gt;'LIKE','between'=&gt;'BETWEEN','notnull'=&gt;'IS NOT NULL','null'=&gt;'IS NULL')</span>			(line <span class="line-number">99</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$config" id="$config"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$config</span>
			 = <span class="var-default"> ''</span>			(line <span class="line-number">96</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$connected" id="$connected"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$connected</span>
			 = <span class="var-default"> false</span>			(line <span class="line-number">93</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$dbType" id="$dbType"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$dbType</span>
			 = <span class="var-default"> null</span>			(line <span class="line-number">30</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$dbVersion" id="$dbVersion"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$dbVersion</span>
			 = <span class="var-default"> null</span>			(line <span class="line-number">33</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$debug" id="$debug"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$debug</span>
			 = <span class="var-default"> false</span>			(line <span class="line-number">42</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$error" id="$error"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$error</span>
			 = <span class="var-default"> ''</span>			(line <span class="line-number">81</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$fields" id="$fields"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$fields</span>
			 = <span class="var-default"> null</span>			(line <span class="line-number">60</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$lastInsID" id="$lastInsID"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$lastInsID</span>
			 = <span class="var-default"> null</span>			(line <span class="line-number">63</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$linkID" id="$linkID"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$linkID</span>
			 = <span class="var-default">array()</span>			(line <span class="line-number">84</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$numCols" id="$numCols"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$numCols</span>
			 = <span class="var-default"> 0</span>			(line <span class="line-number">69</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$numRows" id="$numRows"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$numRows</span>
			 = <span class="var-default"> 0</span>			(line <span class="line-number">66</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$pconnect" id="$pconnect"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$pconnect</span>
			 = <span class="var-default"> false</span>			(line <span class="line-number">45</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$queryID" id="$queryID"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$queryID</span>
			 = <span class="var-default"> null</span>			(line <span class="line-number">90</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$queryStr" id="$queryStr"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$queryStr</span>
			 = <span class="var-default"> ''</span>			(line <span class="line-number">48</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$queryTimes" id="$queryTimes"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$queryTimes</span>
			 = <span class="var-default"> 0</span>			(line <span class="line-number">72</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$result" id="$result"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$result</span>
			 = <span class="var-default"> null</span>			(line <span class="line-number">51</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$resultSet" id="$resultSet"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$resultSet</span>
			 = <span class="var-default"> null</span>			(line <span class="line-number">54</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$resultType" id="$resultType"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$resultType</span>
			 = <span class="var-default"> DATA_TYPE_ARRAY</span>			(line <span class="line-number">57</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$transTimes" id="$transTimes"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$transTimes</span>
			 = <span class="var-default"> 0</span>			(line <span class="line-number">78</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$writeTimes" id="$writeTimes"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$writeTimes</span>
			 = <span class="var-default"> 0</span>			(line <span class="line-number">75</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$_linkID" id="$_linkID"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$_linkID</span>
			 = <span class="var-default">	null</span>			(line <span class="line-number">87</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
						
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodgetInstance" id="getInstance"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static getInstance</span> (line <span class="line-number">128</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">取得数据库类实例</p>
	<ul class="tags">
				<li><span class="field">return:</span> 返回数据库驱动类</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		static <span class="method-result">mixed</span>
		<span class="method-name">
			getInstance
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodparseDSN" id="parseDSN"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static parseDSN</span> (line <span class="line-number">340</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">DSN解析</p>
<p class="description"><p>格式： mysql://username:passwd@localhost:3306/DbName</p></p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		static <span class="method-result">array</span>
		<span class="method-name">
			parseDSN
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$dsnStr</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$dsnStr</span>			</li>
				</ul>
		
			
	</div>
<a name="method__construct" id="__construct"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">113</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">架构函数</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Db</span>
		<span class="method-name">
			__construct
		</span>
					([<span class="var-type">array</span>&nbsp;<span class="var-name">$config</span> = <span class="var-default">''</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$config</span><span class="var-description">: 数据库配置数组</span>			</li>
				</ul>
		
			
			<hr class="separator" />
		<div class="notes">Redefined in descendants as:</div>
		<ul class="redefinitions">
					<li>
				<a href="../../Think/Db/DbIbase.html#method__construct">DbIbase::__construct()</a>
								: 架构函数 读取数据库配置信息
							</li>
					<li>
				<a href="../../Think/Db/DbMysql.html#method__construct">DbMysql::__construct()</a>
								: 架构函数 读取数据库配置信息
							</li>
					<li>
				<a href="../../Think/Db/DbMysqli.html#method__construct">DbMysqli::__construct()</a>
								: 架构函数 读取数据库配置信息
							</li>
					<li>
				<a href="../../Think/Db/DbPdo.html#method__construct">DbPdo::__construct()</a>
								: 架构函数 读取数据库配置信息
							</li>
					<li>
				<a href="../../Think/Db/DbPgsql.html#method__construct">DbPgsql::__construct()</a>
								: 架构函数 读取数据库配置信息
							</li>
				</ul>
	</div>
<a name="methodadd" id="add"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">add</span> (line <span class="line-number">1080</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">插入记录</p>
	<ul class="tags">
				<li><span class="field">return:</span> | integer</li>
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">false</span>
		<span class="method-name">
			add
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$map</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$table</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$multi</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$map</span><span class="var-description">: 数据</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$table</span><span class="var-description">: 数据表名</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$multi</span><span class="var-description">: 是否插入多条记录</span>			</li>
				</ul>
		
			
	</div>
<a name="methodaddAll" id="addAll"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">addAll</span> (line <span class="line-number">1130</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">插入多个记录</p>
	<ul class="tags">
				<li><span class="field">return:</span> | integer</li>
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">false</span>
		<span class="method-name">
			addAll
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$map</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$table</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$map</span><span class="var-description">: 数据列表</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$table</span><span class="var-description">: 数据表名</span>			</li>
				</ul>
		
			
	</div>
<a name="methodaddConnect" id="addConnect"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">addConnect</span> (line <span class="line-number">219</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">增加数据库连接(相同类型的)</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			addConnect
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$config</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$linkNum</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$config</span><span class="var-description">: 数据库连接信息</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$linkNum</span><span class="var-description">: 创建的连接序号</span>			</li>
				</ul>
		
			
	</div>
<a name="methodaddSpecialChar" id="addSpecialChar"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">addSpecialChar</span> (line <span class="line-number">869</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">字段和表名添加` 符合</p>
<p class="description"><p>保证指令中使用关键字不出错 针对mysql</p></p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			addSpecialChar
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$value</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$value</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$value</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$value</span>			</li>
				</ul>
		
			
	</div>
<a name="methodautoExec" id="autoExec"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">autoExec</span> (line <span class="line-number">1007</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">自动判断进行查询或者执行操作</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			autoExec
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span> = <span class="var-default">''</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$lazy</span> = <span class="var-default">false</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$lock</span> = <span class="var-default">false</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$sql</span><span class="var-description">: SQL指令</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$lazy</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$lock</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$cache</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddebug" id="debug"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">debug</span> (line <span class="line-number">374</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">数据库调试 记录当前SQL</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			debug
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodexecute" id="execute"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">execute</span> (line <span class="line-number">983</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">数据库操作方法</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			execute
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span> = <span class="var-default">''</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$lock</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$sql</span><span class="var-description">: 执行语句</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$lock</span>			</li>
				</ul>
		
			
	</div>
<a name="methodfactory" id="factory"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">factory</span> (line <span class="line-number">147</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">加载数据库 支持配置文件或者 DSN</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			&amp;factory
		</span>
					([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$db_config</span> = <span class="var-default">''</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$db_config</span><span class="var-description">: 数据库配置信息</span>			</li>
				</ul>
		
			
	</div>
<a name="methodfieldFormat" id="fieldFormat"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">fieldFormat</span> (line <span class="line-number">839</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">字段格式化</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			fieldFormat
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$value</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$value</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$value</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$value</span>			</li>
				</ul>
		
			
	</div>
<a name="methodfind" id="find"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">find</span> (line <span class="line-number">1041</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">查找记录</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">ArrayObject</span>
		<span class="method-name">
			find
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$where</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$tables</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">null</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$limit</span> = <span class="var-default">null</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$group</span> = <span class="var-default">null</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$having</span> = <span class="var-default">null</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$join</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lock</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$where</span><span class="var-description">: 数据</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$tables</span><span class="var-description">: 数据表名</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$fields</span><span class="var-description">: 字段名</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$order</span><span class="var-description">: 排序</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$limit</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$group</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$having</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$cache</span><span class="var-description">: 是否缓存</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$lazy</span><span class="var-description">: 是否惰性加载</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$lock</span><span class="var-description">: 是否加锁</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$join</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetDbType" id="getDbType"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getDbType</span> (line <span class="line-number">413</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">返回数据库的类型 如果使用PDO 会进一步分析</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getDbType
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetLastSql" id="getLastSql"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getLastSql</span> (line <span class="line-number">1332</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">获取最近一次查询的sql语句</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getLastSql
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodinitConnect" id="initConnect"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">initConnect</span> (line <span class="line-number">268</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">初始化数据库连接</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			initConnect
		</span>
					([<span class="var-type">boolean</span>&nbsp;<span class="var-name">$master</span> = <span class="var-default">true</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$master</span><span class="var-description">: 主服务器</span>			</li>
				</ul>
		
			
	</div>
<a name="methodisMainIps" id="isMainIps"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">isMainIps</span> (line <span class="line-number">893</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">是否为数据库更改操作</p>
	<ul class="tags">
				<li><span class="field">return:</span> 如果是查询操作返回false</li>
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolen</span>
		<span class="method-name">
			isMainIps
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$query</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$query</span><span class="var-description">: SQL指令</span>			</li>
				</ul>
		
			
	</div>
<a name="methodlazyQuery" id="lazyQuery"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">lazyQuery</span> (line <span class="line-number">964</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">延时查询方法</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../Think/Db/ResultIterator.html">ResultIterator</a></span>
		<span class="method-name">
			lazyQuery
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span> = <span class="var-default">''</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$sql</span><span class="var-description">: 查询语句</span>			</li>
				</ul>
		
			
	</div>
<a name="methodmultiConnect" id="multiConnect"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">multiConnect</span> (line <span class="line-number">291</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">连接分布式服务器</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			multiConnect
		</span>
					([<span class="var-type">boolean</span>&nbsp;<span class="var-name">$master</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$master</span><span class="var-description">: 主服务器</span>			</li>
				</ul>
		
			
	</div>
<a name="methodparseFields" id="parseFields"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">parseFields</span> (line <span class="line-number">718</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">fields分析</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			parseFields
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$fields</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$fields</span>			</li>
				</ul>
		
			
	</div>
<a name="methodparseGroup" id="parseGroup"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">parseGroup</span> (line <span class="line-number">674</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">group分析</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			parseGroup
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$group</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$group</span>			</li>
				</ul>
		
			
	</div>
<a name="methodparseHaving" id="parseHaving"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">parseHaving</span> (line <span class="line-number">697</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">having分析</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			parseHaving
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$having</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$having</span>			</li>
				</ul>
		
			
	</div>
<a name="methodparseJoin" id="parseJoin"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">parseJoin</span> (line <span class="line-number">596</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">join分析</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			parseJoin
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$join</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$join</span><span class="var-description">: Join表达式</span>			</li>
				</ul>
		
			
	</div>
<a name="methodparseLimit" id="parseLimit"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">parseLimit</span> (line <span class="line-number">625</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">limit分析</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			parseLimit
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$limit</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$limit</span>			</li>
				</ul>
		
			
	</div>
<a name="methodparseOrder" id="parseOrder"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">parseOrder</span> (line <span class="line-number">573</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">order分析</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			parseOrder
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$order</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$order</span><span class="var-description">: 排序</span>			</li>
				</ul>
		
			
	</div>
<a name="methodparseSets" id="parseSets"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">parseSets</span> (line <span class="line-number">777</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">set分析</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			parseSets
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$sets</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$sets</span>			</li>
				</ul>
		
			
	</div>
<a name="methodparseTables" id="parseTables"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">parseTables</span> (line <span class="line-number">395</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">table分析</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			parseTables
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$tables</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$tables</span><span class="var-description">: 数据表名</span>			</li>
				</ul>
		
			
	</div>
<a name="methodparseValues" id="parseValues"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">parseValues</span> (line <span class="line-number">753</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">value分析</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			parseValues
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$values</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$values</span>			</li>
				</ul>
		
			
	</div>
<a name="methodparseWhere" id="parseWhere"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">parseWhere</span> (line <span class="line-number">454</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">where分析</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			parseWhere
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$where</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$where</span><span class="var-description">: 查询条件</span>			</li>
				</ul>
		
			
	</div>
<a name="methodQ" id="Q"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">Q</span> (line <span class="line-number">1288</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">查询次数更新或者查询</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			Q
		</span>
					([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$times</span> = <span class="var-default">''</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$times</span>			</li>
				</ul>
		
			
	</div>
<a name="methodquery" id="query"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">query</span> (line <span class="line-number">922</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">查询数据方法，支持动态缓存</p>
<p class="description"><p>动态缓存方式为可配置，默认为文件方式</p></p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			query
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span> = <span class="var-default">false</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$lock</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$sql</span><span class="var-description">: 查询语句</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$cache</span><span class="var-description">: 是否缓存查询</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$lazy</span><span class="var-description">: 是否惰性加载</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$lock</span>			</li>
				</ul>
		
			
	</div>
<a name="methodremove" id="remove"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">remove</span> (line <span class="line-number">1178</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">删除记录</p>
	<ul class="tags">
				<li><span class="field">return:</span> | integer</li>
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">false</span>
		<span class="method-name">
			remove
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$where</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$table</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$limit</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$where</span><span class="var-description">: 为条件Map、Array或者String</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$table</span><span class="var-description">: 数据表名</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$limit</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$order</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsave" id="save"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">save</span> (line <span class="line-number">1202</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">更新记录</p>
	<ul class="tags">
				<li><span class="field">return:</span> | integer</li>
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">false</span>
		<span class="method-name">
			save
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$sets</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$table</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$where</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$limit</span> = <span class="var-default">0</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lock</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$sets</span><span class="var-description">: 数据</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$table</span><span class="var-description">: 数据表名</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$where</span><span class="var-description">: 更新条件</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$limit</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$order</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$lock</span><span class="var-description">: 是否加锁</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetDec" id="setDec"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">setDec</span> (line <span class="line-number">1271</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">减少某个字段的值</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setDec
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$table</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$condition</span>, [<span class="var-type">integer</span>&nbsp;<span class="var-name">$step</span> = <span class="var-default">1</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$where</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span><span class="var-description">: 要保存的字段名</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$table</span><span class="var-description">: 数据表</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$where</span><span class="var-description">: 保存条件</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$step</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$condition</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetField" id="setField"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">setField</span> (line <span class="line-number">1225</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">保存某个字段的值</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setField
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$value</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$table</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$condition</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$asString</span> = <span class="var-default">false</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$where</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span><span class="var-description">: 要保存的字段名</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$value</span><span class="var-description">: 字段值</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$table</span><span class="var-description">: 数据表</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$where</span><span class="var-description">: 保存条件</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$asString</span><span class="var-description">: 字段值是否为字符串</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$condition</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetInc" id="setInc"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">setInc</span> (line <span class="line-number">1251</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">增加某个字段的值</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setInc
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$table</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$condition</span>, [<span class="var-type">integer</span>&nbsp;<span class="var-name">$step</span> = <span class="var-default">1</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$where</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span><span class="var-description">: 要保存的字段名</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$table</span><span class="var-description">: 数据表</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$where</span><span class="var-description">: 保存条件</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$step</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$condition</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetLockMode" id="setLockMode"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">setLockMode</span> (line <span class="line-number">819</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">设置锁机制</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			setLockMode
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodswitchConnect" id="switchConnect"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">switchConnect</span> (line <span class="line-number">245</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">切换数据库连接</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			switchConnect
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$linkNum</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$linkNum</span><span class="var-description">: 创建的连接序号</span>			</li>
				</ul>
		
			
	</div>
<a name="methodW" id="W"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">W</span> (line <span class="line-number">1312</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">写入次数更新或者查询</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			W
		</span>
					([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$times</span> = <span class="var-default">''</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$times</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Thu, 27 Mar 2008 08:20:30 +0000 by 塞北的雪
	</p>
	</div></body>
</html>